<template>
  <div>
    <elm-page-tb>
      <template #top>
        <el-input placeholder="请查询输入内容" size="mini" prefix-icon='el-icon-search' style="width:250px;" v-model="postData.remark" clearable></el-input>
        <right>
          <el-button-group>
            <el-button icon="el-icon-search" size="mini" @click="tablebinding()">查询</el-button>
            <elm-open-button url="receipt_edit" title="新增"  width="900" height="90%">新增</elm-open-button>
          </el-button-group>
        </right>
      </template>
      <elm-table url="/business/bms/receipt/GetData" :post-data="postData">
        <el-table-column prop="sk_amount" label="收款金额(万元)" align="center" width="120"></el-table-column>
        <el-table-column prop="sk_date" label="收款时间" align="center" width="160">
          <template v-slot="scope">
            {{ elm.parseTime(scope.row.sk_date) }}
          </template>
        </el-table-column>
        <el-table-column prop="order_id" label="所属订单" align="left" header-align="center"></el-table-column>
        <el-table-column prop="contract_id" label="所属合同" align="left" header-align="center"></el-table-column>
        <el-table-column prop="pj_mc" label="所属项目" align="left" header-align="center"></el-table-column>
        <el-table-column prop="sk_person_name" label="跟进人" align="center" ></el-table-column>
        <el-table-column prop="fk_unit" label="付款单位" align="center" ></el-table-column>
        <el-table-column prop="remark" label="备注" align="left" header-align="center"></el-table-column>
        <el-table-column fixed="right" label="操作" width="120px" align="center">
          <template v-slot="scope">
            <elm-open-button url="receipt_edit" title="编辑" width="900" height="90%" :data="{ model: scope.row }" type="text">编辑</elm-open-button>
            <elm-delete-button  type="text" size="mini" url="/business/bms/receipt/Delete" :data="{ id: scope.row.id }">删除</elm-delete-button>
          </template>
        </el-table-column>
      </elm-table>
    </elm-page-tb>
  </div>

</template>

<script>

export default {
  extends: elmVueBase,
  data() {
    return {
      postData: { remark: null}
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
